import {
  ReqSourceEnums,
  LATENT_DEV_TYPES_ENUMS
} from '../../constants/enums';

export const REQ_SOURCE_VALUES = ReqSourceEnums.values
export const REQ_SOURCE_OPTIONS = ReqSourceEnums.options // 需求来源下拉options

export const LATENT_DEV_TYPES_OPTIONS = [
  {
    value: LATENT_DEV_TYPES_ENUMS.Category,
    label: '开发新品类'
  },
  {
    value: LATENT_DEV_TYPES_ENUMS.Brand,
    label: '开发新品牌'
  },
  {
    value: LATENT_DEV_TYPES_ENUMS.Sku,
    label: '开发新SKU'
  },
]

export const FORM_ITEMS = [
  {
    prop: 'source',
    label: '需求来源',
    type: 'select',
    options: REQ_SOURCE_OPTIONS,
    defaultVal: REQ_SOURCE_VALUES.TempPurchasingAnalysis,
    disabled: true
  },
  {
    prop: 'devType',
    label: '开发类型',
    type: 'select',
    options: LATENT_DEV_TYPES_OPTIONS,
    disabled: true
  },
  {
    prop: 'industryNo',
    label: '行业',
    type: 'select',
    options: [],
    allowCreate: true,
    filterable: true
  }
]

export const TABLE_COLUMNS = [
  {
    title: '品类编码',
    key: 'categoryNo'
  },
  {
    title: '品类树',
    key: 'categoryPath'
  },
  {
    title: '档次',
    key: 'gradeStr'
  },
  {
    title: '品牌',
    key: 'brandName'
  },
  {
    title: '商品名称',
    key: 'productName'
  },
]
